/*输出OBJECT*/
function outobject(obj, step){
	var str		= "";
	for(var n in obj){
		if(typeof(obj[n]) == 'object'){
			str += step + n + '(object):\n';
			str += outobject(obj[n], '  +') + '\n';
		} else {
			str += step + n + ':' + obj[n] + '\n';
		}
	}
	return str;
}
/*得到返回的JSON*/
function decodeJSON(data){
	try{
		return eval( '(' + data + ')' );
	} catch(e){
		return {success:false, msg:String(data)};
	}
}
/*日期控件*/
$.fn.datebox.defaults.formatter = function(date){
    var y = date.getFullYear();
    var m = date.getMonth()+1;
    var d = date.getDate();
    return y+'-'+(m<10?'0'+m:m)+'-'+(d<10?'0'+d:d);
}
/*Pagination 分页*/
$.fn.pagination.defaults.displayMsg = "共<b><font color=red>{total}</font></b>条记录";
$.fn.pagination.defaults.beforePageText = "当前显示第";
$.fn.pagination.defaults.afterPageText = "页 共<b>{pages}</b>页记录";

